<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<script type="text/javascript"src="http://ajax.googleapis.com/ajax/libs/jquery/1.3/jquery.min.js"></script>
	<script type="text/javascript"src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.2/jquery-ui.min.js"></script>
	<script type="text/javascript"src="http://jquery-jsonp.googlecode.com/files/jquery.jsonp-1.1.0.min.js"></script>
	<script type="text/javascript"src="http://shrimp7.googlecode.com/files/english.js"></script>
	<script type="text/javascript"src="http://shrimp7.googlecode.com/files/settings_english.js"></script>
	<script type="text/javascript"src="http://shrimp7.googlecode.com/files/chinese.js"></script>
	<script type="text/javascript"src="http://shrimp7.googlecode.com/files/settings_chinese.js"></script>
	<script type="text/javascript"src="../lib/shrimp7.js"></script>
	<link rel="stylesheet"type="text/css"href="../css/webstyle.css"/>
	<link rel="stylesheet"type="text/css"href="../css/flyoutstyle.css"/>
	<link rel="stylesheet"type="text/css"href="../css/ui/jquery-ui-1.7.2.custom.css"/>
	<meta http-equiv="Content-Type"content="text/html; charset=utf-8"/>
	<meta http-equiv="Pragma"content="no-cache"/>
	<title>shrimp7 web demo - shrimp7.twitter.fetchTimeline</title>
	
	<script>
		function demo(){
			shrimp7.twitter.fetchTimeline({
				refresh:true,
				success:function(data){
					alert(data.length);
				},
				error:function(data){
					if(data==='No userId'){
						alert('Please setup your Twitter account by using the shrimp7.settings.html demo');
					}
				}
			});
		}
	</script>
	
</head>
<body>

<h1>shrimp7.twitter.fetchTimeline(object)</h1>

<p>This demo shows the Twitter fetchTimeline functionality. <b>When you want to try this demo first <a href="shrimp7.settings.html">setup your Twitter account with the settings demo</a>!</b></p>

<input type="button" onclick="demo()" value="demo open your Twitter timeline"/> 

<div id="mydropinscreenelement"></div>

</body>
</html>